package cn.com.cpic.insurance.rulecheck.core.condition;

import java.util.Set;

import cn.com.cpic.insurance.rulecheck.core.ModifiableMap;
import cn.com.cpic.insurance.rulecheck.core.SimpleModifiableMap;

/**
 * 
 * 
 * @author 代波
 * @since 2011-8-13
 */
public final class SimpleConditions implements Conditions {
	private static final long serialVersionUID = -2724795452582272721L;

	private final ModifiableMap<String, Condition> cSet;
	private final ModifiableMap<String, ConditionSwitch> cwSet;

	public SimpleConditions() {
		this((Set<Condition>) null, (Set<ConditionSwitch>) null);
	}

	public SimpleConditions(Set<Condition> cSet, Set<ConditionSwitch> csSet) {
		this(new SimpleModifiableMap<String, Condition>(cSet), new SimpleModifiableMap<String, ConditionSwitch>(csSet));
	}

	public SimpleConditions(ModifiableMap<String, Condition> cSet, ModifiableMap<String, ConditionSwitch> csSet) {
		super();
		this.cSet = cSet;
		this.cwSet = csSet;
	}

	public ModifiableMap<String, Condition> getConditionSet() {
		return cSet;
	}

	public ModifiableMap<String, ConditionSwitch> getConditionSwitchSet() {
		return cwSet;
	}
}
